package com.example.parametervalidator.testcontroller;

import com.example.parametervalidator.annotation.Valid;
import com.example.parametervalidator.annotation.Validator;
import com.example.parametervalidator.entity.TestEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/testController")
public class TesController {



    @ResponseBody
    @RequestMapping("/test")
    @Validator
    public Object testParamVerfiy(String name, @Valid TestEntity testEntity){
        return "不知道";
    }


}
